package com.daxia.ogmall.common;

public enum UserDesignStatus {
	New(1, "新建"), 
	NotAudit(2, "未审核"),
	Published(3, "已发布");

	private int value;
	private String remark;

	private UserDesignStatus(int value, String remark) {
		this.value = value;
		this.remark = remark;
	}

	public int getValue() {
		return value;
	}

	public String getRemark() {
		return remark;
	}

	public static UserDesignStatus getByValue(int value) {
		for (UserDesignStatus o : UserDesignStatus.values()) {
			if (o.getValue() == value) {
				return o;
			}
		}
		return null;
	}
}
